// 景点
import mongoose from 'mongoose'
import Model from './model'
const poiSchema = new mongoose.Schema({
  name: {
    type: String
  },
  province: {
    type: String
  },
  city: {
    type: String
  },
  county: {
    type: String
  },
  areaCode: {
    type: Number
  },
  tel: {
    type: String
  },
  area: {
    type: String
  },
  add: {
    type: String
  },
  type: {
    type: String
  },
  module: {
    type: String
  },
  longtide: {
    type: String
  },
  latitude: {
    type: String
  },
})

class poiModel extends Model {
  constructor(connection, schema, name) {
    super(connection, schema, name)
  }
  // 查找_id
  // db.getCollection('pois').find('5ba49e8760e08dc211ae14d4')
}

const poi = new poiModel(mongoose, poiSchema, 'pois')

export default poi
